package com.zuihai.app.mvp.ui.widget;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomSheetDialog;
import android.view.View;
import android.view.inputmethod.InputMethodManager;

import com.blankj.utilcode.util.LogUtils;

/**
 * Created by Panda_Program on 2018/1/18 0018.
 */

public class MyBotomSheetDialog extends BottomSheetDialog {
    private View v;

    public MyBotomSheetDialog(@NonNull Context context,View v) {
        super(context);
        this.v=v;
    }

    @Override
    public void show() {
        super.show();
        LogUtils.e("show-----...");
        InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.showSoftInput(v,InputMethodManager.SHOW_FORCED);
    }
}
